import "./element-ui/element";
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import requestUtil from "./utils/requestUtils";

// 将请求工具类写到vue原型中
Vue.prototype.requestUtil = requestUtil;

Vue.config.productionTip = false;

// 关闭浏览器前进后退功能
// window.addEventListener("popstate", function() {
//   history.pushState(null, null, document.URL);
// });

// 开启全局事件总线
Vue.prototype.$eventBus = new Vue();

document.body.parentNode.style.overflowY = "hidden"; //隐藏纵向滚动条
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
